#pragma once

class MyEdit
{
public:
	MyEdit();
	~MyEdit() { }
	void setRect(RECT *rc);
	void drawRect(HDC hdc);
	void putChar(char ch);
	void setParent(HWND hwnd);
	void setLastRect(RECT *rc);
	void lButtonDown(int x, int y);
	void initialize();

protected:
	RECT m_rc;
	std::string m_string;
	HWND m_parenthwnd;
	RECT m_lastrc;
	std::list<MyLine *> m_lines;
	std::list<MyChar *> m_chars;
	int m_index;
	int m_line;
};
